package com.keensense.vcm.model;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 * 档案库查询响应信息
 * 
 * @author lanjian
 * @date 2020/5/7 7:50 下午
 */
@XmlRootElement(name = "response")
public class QueryProfileLibrariesResponse extends BaseResponse{

    @XmlElement
    private Integer total;

    @XmlElementWrapper(name = "archivesLibraries")
    @XmlElement(name = "archivesLibrary")
    private List<ProfileLibrary> archivesLibraries;

    @XmlElement
    private Page page;

    @XmlTransient
    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    @XmlTransient
    public List<ProfileLibrary> getArchivesLibraries() {
        return archivesLibraries;
    }

    public void setArchivesLibraries(List<ProfileLibrary> archivesLibraries) {
        this.archivesLibraries = archivesLibraries;
    }

    @XmlTransient
    public Page getPage() {
        return page;
    }

    public void setPage(Page page) {
        this.page = page;
    }

    public static class Page {

        @XmlElement
        private Integer no;

        @XmlElement
        private Integer size;

        @XmlTransient
        public Integer getNo() {
            return no;
        }

        public void setNo(Integer no) {
            this.no = no;
        }

        @XmlTransient
        public Integer getSize() {
            return size;
        }

        public void setSize(Integer size) {
            this.size = size;
        }
    }
}
